﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Kyx.Core.Entities;

/// <summary>
/// 异常日志
/// </summary>
[Table("sys_log_ex")]
[Comment("异常日志表")]
public class SysLogEx : EFCreateEntity
{
    /// <summary>
    /// 日志名称
    /// </summary>
    [Comment("日志名称")]
    [MaxLength(200)]
    public string LogName { get; set; }

    /// <summary>
    /// 日志级别
    /// </summary>
    [Comment("日志级别")]
    [MaxLength(20)]
    public string LogLevel { get; set; }

    /// <summary>
    /// 事件Id
    /// </summary>
    [Comment("事件Id")]
    public string EventId { get; set; }

    /// <summary>
    /// 日志消息
    /// </summary>
    [Comment("日志消息")]
    public string Message { get; set; }

    /// <summary>
    /// 异常对象
    /// </summary>
    [Comment("异常对象")]
    public string Exception { get; set; }

}
